/*
 * Created by JFormDesigner on Fri Nov 01 15:04:50 CST 2024
 */

package com.hafu.view;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.GroupLayout;

/**
 * @author Asus
 */
public class MainFrm extends JFrame {
    public MainFrm() {
        initComponents();
    }

    private void button1(ActionEvent e) {
        // TODO add your code here 显示库存页面
        KuCunFrm kuCunFrm = new KuCunFrm();
        kuCunFrm.setVisible(true);
    }

    private void zjKeHu(ActionEvent e) {
        // TODO add your code here跳转到添加客户界面
        AddKeHuFrm addKeHuFrm = new AddKeHuFrm();
        addKeHuFrm.setVisible(true);
    }

    private void KeHubutton2(ActionEvent e) {
        // TODO add your code here跳转到管理客户界面
        ManageKeHuFrm manageKeHuFrm = new ManageKeHuFrm();
        manageKeHuFrm.setVisible(true);
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents  @formatter:off
        button1 = new JButton();
        zjKeHubutton = new JButton();
        KeHubutton2 = new JButton();

        //======== this ========
        setTitle("\u4e3b\u754c\u9762");
        Container contentPane = getContentPane();

        //---- button1 ----
        button1.setText("\u67e5\u8be2\u5e93\u5b58");
        button1.addActionListener(e -> button1(e));

        //---- zjKeHubutton ----
        zjKeHubutton.setText("\u589e\u52a0\u5ba2\u6237");
        zjKeHubutton.addActionListener(e -> zjKeHu(e));

        //---- KeHubutton2 ----
        KeHubutton2.setText("\u7ba1\u7406\u5ba2\u6237");
        KeHubutton2.addActionListener(e -> KeHubutton2(e));

        GroupLayout contentPaneLayout = new GroupLayout(contentPane);
        contentPane.setLayout(contentPaneLayout);
        contentPaneLayout.setHorizontalGroup(
            contentPaneLayout.createParallelGroup()
                .addGroup(contentPaneLayout.createSequentialGroup()
                    .addGap(38, 38, 38)
                    .addGroup(contentPaneLayout.createParallelGroup()
                        .addGroup(contentPaneLayout.createSequentialGroup()
                            .addComponent(zjKeHubutton)
                            .addGap(46, 46, 46)
                            .addComponent(KeHubutton2))
                        .addComponent(button1))
                    .addContainerGap(362, Short.MAX_VALUE))
        );
        contentPaneLayout.setVerticalGroup(
            contentPaneLayout.createParallelGroup()
                .addGroup(contentPaneLayout.createSequentialGroup()
                    .addGap(41, 41, 41)
                    .addComponent(button1)
                    .addGap(41, 41, 41)
                    .addGroup(contentPaneLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
                        .addComponent(zjKeHubutton)
                        .addComponent(KeHubutton2))
                    .addContainerGap(312, Short.MAX_VALUE))
        );
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents  @formatter:on
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables  @formatter:off
    private JButton button1;
    private JButton zjKeHubutton;
    private JButton KeHubutton2;
    // JFormDesigner - End of variables declaration  //GEN-END:variables  @formatter:on
}
